package com.toidep.videoplayer.util;
 
 import android.content.Context;
import android.content.pm.ApplicationInfo;
 
 public class AndroidContextUtils
 {
   public static int getVersionCode(Context ctx)
   {
/* 24 */     int version = 0;
     try {
/* 26 */       version = ctx.getPackageManager().getPackageInfo(ctx.getApplicationInfo().packageName, 0).versionCode;
     } catch (Exception e) {
/* 28 */       Log.e("getVersionInt", e);
     }
/* 30 */     return version;
   }
 
   public static String getDataDir(Context ctx) {
/* 34 */     ApplicationInfo ai = ctx.getApplicationInfo();
				android.util.Log.i("AndroidContextUtils", "tqtuan: ApplicationInfo: "+ai);
/* 35 */     if (ai.dataDir != null) {
/* 36 */       return StringUtils.fixLastSlash(ai.dataDir);
     }
/* 38 */     return "/data/data/" + ai.packageName + "/";
   }
 }

